package com.lemon.components.ant.util;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.lemon.components.ant.beans.EnumInfo;

public class EnumConvert {

	public static List<EnumInfo> convert(String json){
		try {
			List<EnumInfo> list = JSONArray.parseArray(new String(json.getBytes("ISO8859-1"),"utf-8"), EnumInfo.class);
			return list;
		} catch (Exception e) {
			return null;
		}
	}
}
